#include "ota_http_curl.h"
#include "log.h"

int main(int argc, char *argv[])
{
    response_body_t *response = ota_http_curl_get_response(OTA_URL);
    
    log_info("response.data: %s", response->data);

    int ret = ota_http_curl_download(OTA_URL_DOWNLOAD,OTA_LOCAL_FILE_PATH);
    if(ret == 0)
    {
        log_info("download success");
    }
    else
    {
        log_error("download fail");
    }
    return 0;   
}